var WebIM={};
WebIM.config = {
  /*
  * XMPP server
  */
  xmppURL: 'im-api.easemob.com',
    /*
     * Backend REST API URL
     */
  // apiURL: `${(location.protocol === 'https:' ? 'https:' : 'http:')}//a1.easemob.com`,
  apiURL: 'https://a1.easemob.com',
    /*
     * Application AppKey
     */
  appkey: '1194170629115311#hudayi',
    /*
     * Whether to use wss
     * @parameter {Boolean} true or false
     */
  https: true,
    /*
     * isMultiLoginSessions
     * true: A visitor can sign in to multiple webpages and receive messages at all the webpages.
     * false: A visitor can sign in to only one webpage and receive messages at the webpage.
     */
  isMultiLoginSessions: true,
    /*
     * Set to auto sign-in
     */
  isAutoLogin: true,
    /**
     * Whether to use window.doQuery()
     * @parameter {Boolean} true or false
     */
  isWindowSDK: true,
    /**
     * isSandBox=true:  xmppURL: 'im-api-sandbox.easemob.com',  apiURL: '//a1-sdb.easemob.com',
     * isSandBox=false: xmppURL: 'im-api.easemob.com',          apiURL: '//a1.easemob.com',
     * @parameter {Boolean} true or false
     */
  isSandBox: false,
    /**
     * Whether to console.log in strophe.log()
     * @parameter {Boolean} true or false
     */
  isDebug: false,
    /**
     * will auto connect the xmpp server autoReconnectNumMax times
     * in background when client is offline.
     * won't auto connect if autoReconnectNumMax=0.
     */
  autoReconnectNumMax: 2,
    /**
     * the interval secons between each atuo reconnectting.
     * works only if autoReconnectMaxNum >= 2.
     */
  autoReconnectInterval: 2,
    /**
     * webrtc supports WebKit and https only
     */
  isWebRTC: /WebKit/.test(navigator.userAgent) && /^http$/.test(window.location.protocol),
    /**
     * after login, send empty message to xmpp server like heartBeat every 45s,
     * to keep the ws connection alive.
     */
  heartBeatWait: 4500,
    /**
     * while http access,use ip directly,instead of ServerName,avoiding DNS problem.
     */
  isHttpDNS: false
};
